<?
include("conexion.php");
$link=Conectarse();
$sql = "select *";
$sql.= "from MaterialBibliografico  where ID_Area=".$_REQUEST["cod"];
$result = mysql_query($sql);



?>


<html>
<head>
<title>Web CEDIS-Modificar Material</title>
</head>

<?php


$link1=Conectarse();
$sql1 = "select *";
$sql1.= "from Area_MatBib where ID_Area=".$_REQUEST["cod"];
$result1 = mysql_query($sql1);



$resultado = mysql_num_rows($result1);


         if ($resultado> 0) {

        while($row1 = mysql_fetch_assoc($result1)) {

		 echo "<td align='center'>";

        echo "<strong>".$row1['Nombre_Area']."</strong><br>";

		echo "</td>";


   }

 }


  ?>
   
   
<body>
<form name="form1" method="post" action="">





  <div align="center">
    <table width="800" border="1" cellspacing="0">


      <tr>
        <td align="center" valign="middle" bgcolor="#CCCCCC"><div align="center"><strong><font color="#000000">C&oacute;digo</font></strong></div></td>
        <td align="center" valign="middle" bgcolor="#CCCCCC"><div align="center"><strong><font color="#000000">Autor</font></strong></div></td>
        <td align="center" valign="middle" bgcolor="#CCCCCC"><div align="center"><strong><font color="#000000">Titulo</font></strong></div></td>
        <td align="center" valign="middle" bgcolor="#CCCCCC"><div align="center"><strong><font color="#000000">Detalles </font></strong></div></td>
        </tr>

<?php
while($row = mysql_fetch_array($result)) {
 ?>

<tr>
<td align="center" valign="middle" bgcolor="#FFFFFF"><div align="left"><?php echo $row[0]; ?></div></td>
        <td align="center" valign="middle" bgcolor="#FFFFFF"><div align="left"><?php echo $row[2]; ?></div></td>
        <td align="center" valign="middle" bgcolor="#FFFFFF"><div align="left"><?php echo $row[3] ;?></div></td>
        <td align="center" valign="middle" bgcolor="#FFFFFF"><div align="center"><a href="catalogo_ver_detalles.php?codigo=<?php echo $row[0]; ?>">Detalles</a></div></td>
      </tr>

    <?php
	 	  }

   ?>

    </table>




    <p>&nbsp;</p>
  </div>
</form>
</body>
</html>

